package com.cls.system.mapper;

import com.cls.system.entity.SysFile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * 系统附件 Mapper
 *
 * @author wmm
 * @date 2020-12-02 09:33:06
 */
@Repository
public interface SysFileMapper extends BaseMapper<SysFile> {

    /**
     * 查询创建时间小于前天的时间且未完成的数据
     * @return
     */
    @Select("select * from sys_file where is_finish=0 and create_time<=#{date}")
    List<SysFile> findNoFinishFile(@Param("date") Date date);

}
